﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Vit.Web.Models
{
    public enum DataComparison
    {
        Equals, NotEquals, Contains, NotContains,
        Greater, GreaterEquals, Less, LessEquals,
        Between, In, NotIn
    }

    public static class DataComparisonExtensions
    {
        public static string ToOperator(this DataComparison comparison)
        {
            switch (comparison)
            {
                case DataComparison.Equals:
                    return "==";
                case DataComparison.NotContains:
                    return "!=";
            }
            throw new NotSupportedException("DataComparisonNotSupported");
        }
    }
}
